<form action="<?=$this->base_url?>users/save" method="post">
	<table border="1" class="table" align="center">
		<tr>
			<td>Имя</td>
			<td><input type="text" name="name" value="<?=$this->user_name?>" /></td>
		</tr>
		<tr>
			<td>Пароль</td>
			<td><input type="password" name="password" value="" /></td>
		</tr>
		<tr>
			<td>Роль</td>
			<td>
				<select name="role">
					<?
						foreach ($this->user_roles as $name => $title)
						{

							if ($name == $this->user_role)
								echo '<option selected value="'.$name.'">'.$title.'</option>';
							else
								echo '<option value="'.$name.'">'.$title.'</option>';
						}
					?>
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<input type="submit" value="Сохранить" />
				<input type="button" onclick="document.location='<?=$this->base_url?>users'" value="Отмена" />
			</td>	
		</tr>
	</table>
</form>